package com.smec.moblie.util.imageuploader;

import java.util.List;

/**
 * Created by snipking on 14-2-26.
 */
public interface ResourceResponseHandler {

	/**
	 * Called when upload list finish upload
	 *
	 * @param restResources
	 *            : upload failed resource list which been stored in
	 *            sharedpreference either
	 */
	public void onFinish(List<FndResource> restResources);

	/**
	 * Called when each resource upload failed
	 *
	 * @param statusCode
	 *            : http status code
	 * @param error
	 */
	public void onItemUploadFailure(FndResource resource, int statusCode,
                                    Throwable error);

	/**
	 * Called when each resource upload success
	 *
	 * @param resource
	 */
	public void onItemUploadSuccess(FndResource resource);

}
